
		
******************************************************************	
** Figure : Propagation effects, 500 merchants threshold
******************************************************************	

use "$datadir\ewallet\maindata.dta", clear
	label var postXdist500 " $ \text{(Distance to hub)}_{d} $ $ \times $ Post"
	
	****** 1. Control for pre_loans *****
	reghdfe logamount postXdist500 if $filters, a($fe $dist_controls##i.time_id i.state_id#i.time_id) cluster(district_id)
	outreg2 using "$outputdir_tab\Table_H_10", tex(frag) ctitle(" log(amount) ") dec(3) bracket label addtext(District f.e. , $\checkmark$ , Month f.e. , $\checkmark$ , District Controls $\times$ Month f.e., $\checkmark$ , State $\times$ Month f.e., $\checkmark$) nocons nonotes stats(coef se)  replace
	reghdfe logamount postXdist500 if $filters, a($fe $dist_controls##i.time_id i.state_id#i.time_id c.num_app_pre#i.time_id) cluster(district_id)
	outreg2 using "$outputdir_tab\Table_H_10", tex(frag) ctitle(" log(amount) ") dec(3) bracket label addtext(District f.e. , $\checkmark$ , Month f.e. , $\checkmark$ , District Controls $\times$ Month f.e., $\checkmark$ , State $\times$ Month f.e., $\checkmark$ ,  Pre loans $\times$ Month f.e., $\checkmark$) nocons nonotes stats(coef se)  append
	reghdfe lognumfirms postXdist500 if $filters, a($fe $dist_controls##i.time_id i.state_id#i.time_id) cluster(district_id)
	outreg2 using "$outputdir_tab\Table_H_10", tex(frag) ctitle(" log(amount) ") dec(3) bracket label addtext(District f.e. , $\checkmark$ , Month f.e. , $\checkmark$ , District Controls $\times$ Month f.e., $\checkmark$ , State $\times$ Month f.e., $\checkmark$) nocons nonotes stats(coef se)  append
	reghdfe lognumfirms postXdist500 if $filters, a($fe $dist_controls##i.time_id i.state_id#i.time_id c.num_app_pre#i.time_id) cluster(district_id)
	outreg2 using "$outputdir_tab\Table_H_10", tex(frag) ctitle(" log(# users) ") dec(3) bracket label addtext(District f.e. , $\checkmark$ , Month f.e. , $\checkmark$ , District Controls $\times$ Month f.e., $\checkmark$ , State $\times$ Month f.e., $\checkmark$ ,  Pre loans $\times$ Month f.e., $\checkmark$) nocons nonotes stats(coef se)  append
	reghdfe lognewfirms postXdist500 if $filters, a($fe $dist_controls##i.time_id i.state_id#i.time_id) cluster(district_id)
	outreg2 using "$outputdir_tab\Table_H_10", tex(frag) ctitle(" log(# switchers) ") dec(3) bracket label addtext(District f.e. , $\checkmark$ , Month f.e. , $\checkmark$ , District Controls $\times$ Month f.e., $\checkmark$ , State $\times$ Month f.e., $\checkmark$) nocons nonotes stats(coef se)  append
	reghdfe lognewfirms postXdist500 if $filters, a($fe $dist_controls##i.time_id i.state_id#i.time_id c.num_app_pre#i.time_id) cluster(district_id)
	outreg2 using "$outputdir_tab\Table_H_10", tex(frag) ctitle(" log(# switchers) ") dec(3) bracket label addtext(District f.e. , $\checkmark$ , Month f.e. , $\checkmark$ , District Controls $\times$ Month f.e., $\checkmark$ , State $\times$ Month f.e., $\checkmark$ ,  Pre loans $\times$ Month f.e., $\checkmark$) nocons nonotes stats(coef se)  append


		